package ynu.edu.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import ynu.edu.common.service.LogicService;
import ynu.edu.dao.*;
import ynu.edu.entity.*;
import java.util.List;


@Service
public class ShopItemService extends LogicService<ShopItemDao, ShopItem,Long> {
    public ShopItemService(@Autowired ShopItemDao dao){
        super(dao);
    }

    public List<ShopItem> getAllShopItem(Long shopId){
        return getDAO().findAllByShopId(shopId);
    }
}